Remove the gdk backend API too
authorMatthias Clasen <mclasen@redhat.com>
Tue, 2 May 2017 20:16:05 +0000 (16:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 2 May 2017 20:17:33 +0000 (16:17 -0400)
The GTK+ level API for this is already gone.

gdk/x11/gdkwindow-x11.c
gdk/x11/gdkx11window.h

index 87330dfe74a69f02a7ff42385f818a5697e885ca..2bf01f7ee6bd2e088e40b74c737f998b8cd3a6de 100644 (file)
@@ -3050,49 +3050,6 @@ gdk_x11_window_set_utf8_property  (GdkWindow *window,
     }
 }
 
-/**
- * gdk_x11_window_set_hide_titlebar_when_maximized:
- * @window: (type GdkX11Window): a #GdkWindow
- * @hide_titlebar_when_maximized: whether to hide the titlebar when
- *                                maximized
- *
- * Set a hint for the window manager, requesting that the titlebar
- * should be hidden when the window is maximized.
- *
- * Note that this property is automatically updated by GTK+, so this
- * function should only be used by applications which do not use GTK+
- * to create toplevel windows.
- *
- * Since: 3.4
- */
-void
-gdk_x11_window_set_hide_titlebar_when_maximized (GdkWindow *window,
-                                                 gboolean   hide_titlebar_when_maximized)
-{
-  GdkDisplay *display;
-
-  if (!WINDOW_IS_TOPLEVEL (window))
-    return;
-
-  display = gdk_window_get_display (window);
-
-  if (hide_titlebar_when_maximized)
-    {
-      gulong hide = 1;
-      XChangeProperty (GDK_DISPLAY_XDISPLAY (display),
-                       GDK_WINDOW_XID (window),
-                       gdk_x11_get_xatom_by_name_for_display (display, "_GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED"),
-                       XA_CARDINAL, 32,
-                       PropModeReplace, (guchar *)&hide, 1);
-    }
-  else
-    {
-      XDeleteProperty (GDK_DISPLAY_XDISPLAY (display),
-                       GDK_WINDOW_XID (window),
-                       gdk_x11_get_xatom_by_name_for_display (display, "_GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED"));
-    }
-}
-
 static void
 gdk_x11_window_set_shadow_width (GdkWindow *window,
                                  int        left,
index b4fac2ff901b4c3881e7f4909c117de3020518cc..8257941a5251407af1f95a51a499adc4a0161877 100644 (file)
@@ -71,9 +71,6 @@ void     gdk_x11_window_set_frame_extents (GdkWindow *window,
                                            int        right,
                                            int        top,
                                            int        bottom);
-GDK_AVAILABLE_IN_3_4
-void     gdk_x11_window_set_hide_titlebar_when_maximized (GdkWindow *window,
-                                                          gboolean   hide_titlebar_when_maximized);
 GDK_AVAILABLE_IN_ALL
 void     gdk_x11_window_move_to_current_desktop (GdkWindow   *window);